<?php
/**
 * <https://y.st./>
 * Copyright © 2018 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'An ugly fix',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2018/12/10.jpg" alt="False cedars" class="framed-centred-image" width="649" height="480"/>
<section id="dreams">
	<h2>Dream journal</h2>
	<p>
		I dreamed I lived with my mother, and my bedroom was obnoxiously difficult to reach.
		It was on the upper floor, but there were no stairs whatsoever.
		I had to use a chair to reach my hand up to my doorway, hang from my hand, and flip my body upside-down.
		From there, I could wedge my foot into the moulding of the closet door below, and somehow twist my body up and into my bedroom.
		I forget exactly how I did that last part.
		The nice part was that it took my mother a few hours to get up, so I had decent privacy up there, unlike in my actual bedroom when I lived with her, as she'd just walk right in whenever she felt like.
	</p>
</section>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		My discussion post for the day:
	</p>
	<blockquote>
		<p>
			You make an excellent point that when passing by value, non-variable expressions can even be used.
			Their value is computed as normal, then that value is passed into the function.
			When passing by reference, this doesn't work.
			The expression can be evaluated to find a value, but that value doesn't matter because what we pass is a pointer.
			If the value doesn't get assigned to a variable first, there's no pointer to pass into the subprogram.
			Like you said too, passing by value is safer.
			You don't have your values unexpectedly modified on you, and certain bugs, such as memory smears, do not occur.
		</p>
		<p>
			Don't feel too bad about not figuring out how recursion makes the algorithm more efficient.
			As a general rule, recursion always makes algorithms <strong>*less*</strong> efficient.
			However, for some problems, they make it easier for the programmer to understand how to solve the problem.
			It's a trade-off between development time and readability versus efficiency.
			I think the discussion question may have been intentionally misleading in that way.
		</p>
	</blockquote>
</section>
<section id="defective">
	<h2>Defective</h2>
	<p>
		As I mentioned before, I've been dealing with a defective electronic device.
		It refuses to charge.
		This is because the rubber outer shell of the device keeps pushing the charging cord out just far enough for the device to stop soaking up the power.
		If you hold the cord in, it charges, but you'd have to hold it there for a few hours, and that's not feasible.
		I've tried tying the cord in place using string and a shoelace, but that doesn't really work.
		On the rare occasion it does work, the cord gets a bit contorted near the end, and I fear the wire inside will take damage so it won't charge the thing at all.
		I've wanted so badly to just cut away the rubber on the device, but that'd no doubt void the warrantee.
		Honestly, I should send the thing in to be replaced, as it's clearly defective, but I'm trying really hard to avoid doing that for the <strong>*third*</strong> time.
		I've finally found a solution though.
		I don't like it, but it works.
	</p>
	<p>
		I've cut away at the charging cord, effectively lengthening the charging pin.
		The cord was never the problem, it's the device.
		For some reason, the charging port is set too deeply into the device.
		I was amazed by how much plastic I had to cut away from the cord.
		I kept cutting and trying, but it wasn't enough, and I'd have to cut more and try again.
		Now though, the thing charges.
		I'm expecting another issue to pop up though.
		The motors on the last two shorted out really quickly.
		This one's been the longest-lasting, though I've had to jump through hoops to even keep it functioning.
		I guess you could say this one's broken too, so it's not actually the longest-lasting, but I always feel bad claiming warrantees.
		If I can keep it functioning &quot;well enough&quot;, I'd rather just do that.
	</p>
</section>
<section id="hair">
	<h2>Hair-removal</h2>
	<p>
		Last time I used the depilatory cream, it didn't cause ingrown hairs or itchiness like shaving does.
		That said, it didn't exactly get the hairs all the way off, either.
		Short stubs of hair kept the pores open, and I'm not sure why the stubble didn't cause itchiness against my shirt.
		But this time, I've already notices ingrown hairs, and the itchiness started on the first day.
		If I can't figure out how to avoid this, I might as well just shave instead of using the cream.
		Maybe my chest'll become desensitized to the itch after a while.
		Still, it'd be nice to have a permanent solution.
		When time allows, I need to look into $a[laser] hair removal further.
		I think I can afford it, and it'll boost my self-confidence, especially if I can get rid of the ever-present stubble on my face.
	</p>
</section>
END
);
